We're chugging along here.
You've learned the basics of reading and writing files now.
There are two things that trip people up,
so just keep these in mind.
First, you have to pass a string, the file's name,
as the first parameter when you call the open function.
If you have a variable name whose value is the file name,
don't put it in quotes.
If you have a literal file name,
do put it in quotes.
Second, you have to keep track of the distinction between the file name,
a string, the file object,
does the thing return by the open function,
and the file's contents which you get by doing operations on the file object.
I'm glad you made it this far, it's joke time.
Reading, I had plans to read a book about sinkholes, but they fell through.
Writing, there was once a young man who professed his desire to become a great writer.
When asked to define great, he said,
"I want to write stuff that the whole world will read,
stuff that people will react to on a truly emotional level,
stuff that will make them scream,
cry, howl in pain and anger."
He now writes the error messages for the Python Interpreter. See you next time.